import React from 'react';

import genTabContainer from '../../utils/TabUtil';
import MsgListScreen from './MsgListScreen';

// message page
// export default function Message() {
const tabs = {
  Unread: {
    screen: ({ navigation }) => <MsgListScreen type="unread" navigation={navigation} />,
    navigationOptions: {
      title: '未读'
    }
  },
  Read: {
    screen: ({ navigation }) => <MsgListScreen type="read" navigation={navigation} />,
    navigationOptions: {
      title: '已读'
    }
  },
  Sent: {
    screen: ({ navigation }) => <MsgListScreen type="sent" navigation={navigation} />,
    navigationOptions: {
      title: '已发送'
    }
  },
};

const TabNavigator = genTabContainer(tabs);
export default TabNavigator;
